/*
 * @Author: zhang_gen_yuan
 * @Date: 2021-08-15 10:49:21
 * @LastEditTime: 2021-08-16 11:06:52
 * @Descripttion: 
 */

import store from '/@/store'
const permission = {
  mounted: function (el, binding) {
    const { value } = binding;
    let btns = store.state.permission.btns;
    let index = btns.indexOf(value);
    if(value){
      if(index === -1){
        el.parentNode && el.parentNode.removeChild(el)
      }
    }
  }
}

export default permission